package kizzo.game.tile_objects 
{
	import away3d.entities.Mesh;
	import flash.events.Event;
	import kizzo.geometry.TileCoord3D;
	import org.flashdevelop.utils.FlashConnect;
	/**
	 * ...
	 * @author kizzo
	 */
	public class ActivatedTile extends TileObject
	{
		public var id:int;
		
		public var activated:Boolean;
		
		public function ActivatedTile(mesh:Mesh, tile_coord:TileCoord3D, type:uint, id:int) 
		{			
			super(mesh, tile_coord, type);	
			this.id = id;
			this.activated = false;
		}
		
		public function activate(e:Event):void
		{
			is_active = true;
			this.mesh.material = MaterialLib.ACTIVATED;
		}

		public function deactivate(e:Event):void
		{
			is_active = false;
			this.mesh.material = MaterialLib.UNACTIVATED;
		}
		
		
	}

}